package com.learn.english.model.ro;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.learn.english.model.entity.CourseChapter;
import com.learn.english.model.entity.CourseVideo;
import lombok.*;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.*;

/**
 * @author TISNIW
 * @version 1.0
 * @desc
 */
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class CourseInfoRo {
    private Long id;
    private String category;//外键 -分类
    private String teacher;//外键 -讲师
    private String name;
    private String desc;
    private String courseUrl;
    private String coverUrl;
    private Boolean isFree;
    private BigDecimal cost;
    private Long count;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
    private List<CourseChapterRo> courseChapters;//课程章节
    private List<CourseVideo> courseVideos;//如果没有章节则直接获取全部课程视频
}
